package com.isp.org.api.client;

import com.isp.common.model.user.GroupDTO;
import com.isp.common.model.user.PermissionDTO;
import com.isp.common.model.vo.Result;
import com.isp.org.api.dto.Resource;

import java.util.List;
import java.util.Set;

/**
 * @author linsy
 * @version 1.0
 * @created 2024/3/12 14:20
 */
public interface IResourceClient {

    Result<Set<Resource>> resources();

    Result<Set<Resource>> resources(String username);

//    @PostMapping(value = "/permission/group")
    Result<List<PermissionDTO>> permissions(PermissionDTO permissionDTO);

//    @GetMapping(value = "/group/user/{username}")
    Result<List<GroupDTO>> groups(String username);
}
